package com.joysuch.wwyt.edu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.edu.bean.vo.CourseVo;
import com.joysuch.wwyt.edu.bean.vo.CoursewareVo;
import com.joysuch.wwyt.edu.bean.vo.TrainingAppDetailsVo;
import com.joysuch.wwyt.edu.entity.EduTrainningRecordCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface EduTrainningRecordCourseMapper extends BaseMapper<EduTrainningRecordCourse> {

    List<Long> selectCourseIds(@Param("id") Long id);

    List<Long> selectCoursewareCount(@Param("ids") List<Long> ids);

    List<CourseVo> selectCourseList(@Param("trainingId") Long trainingId);

    List<CoursewareVo> selectCoursewareList(@Param("courseId") Long courseId);

    int deleteCourseById(@Param("id") Long id);

    long selectCourse(@Param("id") Long id);
}
